/* Sokoban
 * HIT3243
 * Authors: Mike Blackney, Ben Ingarfield, Kurniawan
 */

#include "dxf.h"
#include "registrar.h"
 
const wchar_t* kProgramName = L"Sokoban";

// No need to worry about the parameters to this function thanks to DXUT
int WINAPI WinMain(	HINSTANCE, HINSTANCE, LPSTR, int) {	

	// Create the registrar and game object on the stack.
	Registrar registrar;
	dxf::Game* const pGame = dxf::Game::Instance();

	HRESULT hr;

	// Load the game windowed (good for debugging):
	V(pGame->Load(kProgramName, &registrar, 800, 600, true, true));

	// Or, load the game full-screen:
	//V(pGame->Load(kProgramName, &registrar, 1024, 768, true, false));

	// Run the game
	if (SUCCEEDED(hr)) return pGame->Run();	
	return 1;
}

